package com.cuotibao.zhuoxiao.basics.utils.statck;

import android.app.Activity;

import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

/**
 * @author hdx on 2019/5/7.
 */
public abstract class ActivityManage {
    protected List<Activity> mActivitys = Collections
            .synchronizedList(new LinkedList<Activity>());

    public abstract void pushActivity(Activity activity);

    public abstract void popActivity(Activity activity);

    public abstract Activity currentActivity();

    public abstract void finishCurrentActivity();

    public abstract void finishActivity(Activity activity);

    public abstract void finishActivity(Class<?> cls);

    public abstract Activity findActivity(Class<?> cls);

    public abstract Activity getTopActivity();

    public abstract String getTopActivityName();

    public abstract void finishAllActivity();

    public abstract void appExit();
}
